package com.zt.dev.common;

import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 30378
 */
@ResponseBody
public class ResponseUtils {
    public static ServerResponse commonResponse(int i, String message) {
        if (i > 0) {
            return ServerResponse.createBySuccessMessage(message + "成功！");
        } else {
            return ServerResponse.createByErrorMessage(message + "失败！");
        }
    }
}
